#coding=utf-8
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.contrib import admin
admin.autodiscover()

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^zhaokelai/', include('zhaokelai.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^$', 'zhaokelai.main.index'),
    (r'^login/$', 'zhaokelai.main.login'),
    (r'^logout/$', 'zhaokelai.main.logout'),
    (r'^start/$', 'zhaokelai.main.start'),
    (r'^changeStyle/$', 'zhaokelai.main.changeStyle'),
    (r'^admin/', include(admin.site.urls)),
    (r'^about/$', direct_to_template, {'template': 'about.html'}),
    (r'^users/', include('zhaokelai.users.urls')),
    (r'^customer/', include('zhaokelai.customer.urls')),
    (r'^marketing/', include('zhaokelai.marketing.urls')),
    #(r'^analyse/', include('zhaokelai.analyse.urls')),
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_PATH}),
)
